#ifndef CVACTIVITYMANAGER_H
#define CVACTIVITYMANAGER_H

#include <QObject>
#include <QList>
#include <QMap>
#include <QByteArray>
#include <QtScript/QScriptEngine>
#include <QtScript/QScriptValue>
#include <QtScript/QScriptValueIterator>

#include "cvsession.h"
#include "util/cvutil.h"
#include "http/cvhttp.h"
#include "model/cvactivity.h"
#include "model/cvactivityparam.h"
#include "widgets/cvactivitywiget.h"

class CVActivityManager : public QObject
{
    Q_OBJECT
public:
    explicit CVActivityManager();

signals:
    void handActivities(QList<CVActivity *> list, const QString &message);
public slots:
    void getActivities(QMap<QString, QString> options);
private slots:
    void parseData(QScriptValue json, const QString &message);
};

#endif // CVACTIVITYMANAGER_H
